win32: Fix placement at initial position
authorAlexander Larsson <alexl@redhat.com>
Wed, 2 Nov 2011 11:15:53 +0000 (12:15 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 10 Nov 2011 16:41:10 +0000 (17:41 +0100)
commitc563765574fea4e3afe2101f8c005f8b57dc2f66
treec5a1afc48b759718d2c391da58bca1d64e65c140
parentd441044569f4fcf4e5f97d3c84056f1f6099d09b
win32: Fix placement at initial position

Positioning windows at 0,0 post creation failed, because it
was mapped with CW_USEDFAULT, but private->x/y still said 0,
so moving it to 0,0 did nothing. We now always position the
window at the right place, even when not mapped, but we
create it at CW_USEDEFAULT initially and store that position
before moving it to the right place.

This fixes the window sizing test in testgtk and the inital
position for the gimp toolbar.
gdk/win32/gdkwindow-win32.c